package com.aote.util;

import java.util.Calendar;

public class DateForCycle {
	
	public int getStartYearByMonth(int mon){
		Calendar now = Calendar.getInstance();
		int month = now.get(Calendar.MONTH)+1;
		if(month>= mon){
			return now.get(Calendar.YEAR);
		}else {
			return now.get(Calendar.YEAR)-1;
		}
	}

}
